
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>安装与调试 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="kai-fa-huan-jing-yi-lai-mo-kuai-shuo-ming.html" />
    
    
    <link rel="prev" href="xu-yao-kan-de-kuang-jia-wen-dang.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    前言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="jie-shao.html">
            
                <a href="jie-shao.html">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="xu-yao-kan-de-kuang-jia-wen-dang.html">
            
                <a href="xu-yao-kan-de-kuang-jia-wen-dang.html">
            
                    
                    需要看的框架文档
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.2" data-path="an-zhuang.html">
            
                <a href="an-zhuang.html">
            
                    
                    安装与调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="kai-fa-huan-jing-yi-lai-mo-kuai-shuo-ming.html">
            
                <a href="kai-fa-huan-jing-yi-lai-mo-kuai-shuo-ming.html">
            
                    
                    开发环境依赖模块说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="xiang-mu-mu-lu-shuo-ming.html">
            
                <a href="xiang-mu-mu-lu-shuo-ming.html">
            
                    
                    项目目录说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="fa-bu-yun-xing.html">
            
                <a href="fa-bu-yun-xing.html">
            
                    
                    发布运行程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="gou-jian-gong-ju-pei-zhi.html">
            
                <a href="gou-jian-gong-ju-pei-zhi.html">
            
                    
                    构建工具配置说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="appji-zhu-kuang-jia-shuo-ming.html">
            
                <a href="appji-zhu-kuang-jia-shuo-ming.html">
            
                    
                    App技术框架说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="apppei-zhi-yi-ji-qi-ta-fang-fa.html">
            
                <a href="apppei-zhi-yi-ji-qi-ta-fang-fa.html">
            
                    
                    App配置以及其他方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="zu-jian-shuo-ming.html">
            
                <a href="zu-jian-shuo-ming.html">
            
                    
                    组件说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="appye-wu-luo-ji-shuo-ming.html">
            
                <a href="appye-wu-luo-ji-shuo-ming.html">
            
                    
                    App业务逻辑说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="appda-bao-ji-jie-kou-diao-yong.html">
            
                <a href="appda-bao-ji-jie-kou-diao-yong.html">
            
                    
                    App打包及接口调用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="chang-jian-wen-ti.html">
            
                <a href="chang-jian-wen-ti.html">
            
                    
                    常见问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="chang-jian-wen-ti/muikuang-jia-yu-fa-wen-ti.html">
            
                <a href="chang-jian-wen-ti/muikuang-jia-yu-fa-wen-ti.html">
            
                    
                    mui框架语法问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="chang-jian-wen-ti/qi-ta-wen-ti.html">
            
                <a href="chang-jian-wen-ti/qi-ta-wen-ti.html">
            
                    
                    其他问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >安装与调试</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x5B89;&#x88C5;">&#x5B89;&#x88C5;</h2>
<ul>
<li><p>&#x4E0B;&#x8F7D;<a href="http://www.dcloud.io/index.html" target="_blank">HBuilder IDE</a>&#x5F00;&#x53D1;&#x5DE5;&#x5177;&#xFF0C;&#x5176;&#x5B9E;HBuilder&#x662F;dcloud &#x628A;eclipse&#x7684;&#x6539;&#x9020;&#x6210;&#x4E00;&#x4E2A;&#x4E13;&#x95E8;&#x5E94;&#x7528;&#x4E8E;app&#x6253;&#x5305;&#x3001;&#x591A;&#x79CD;&#x8BED;&#x8A00;&#x652F;&#x6301;&#xFF1A;php&#x3001;jsp&#x3001;ruby&#x3001;python&#x3001;nodejs&#x7B49;web&#x8BED;&#x8A00;&#xFF0C;less&#x3001;coffee&#x7B49;&#x7F16;&#x8BD1;&#x578B;&#x8BED;&#x8A00;&#x5747;&#x652F;&#x6301;&#x7684;&#x5F00;&#x53D1;&#x5DE5;&#x5177;</p>
</li>
<li><p>&#x4E0B;&#x8F7D;<a href="https://nodejs.org/en/" target="_blank">node.js</a>&#xFF0C;&#x4F5C;&#x4E3A;&#x524D;&#x7AEF;web&#x7684;&#x8FD0;&#x884C;&#x73AF;&#x5883;&#x3002;&#x6211;&#x5F53;&#x524D;&#x7684;node.js&#x7248;&#x672C;&#x662F;6.10.0 npm&#x7248;&#x672C;&#x662F;5.4.0</p>
</li>
</ul>
<ul>
<li>app&#x6253;&#x5305;&#x5B8C;&#x5168;&#x662F;&#x57FA;&#x4E8E;manifest.json&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x5B83;&#x4E3B;&#x8981;&#x662F;&#x7528;&#x6765;&#x914D;&#x7F6E;app&#x7684;&#x57FA;&#x672C;&#x4FE1;&#x606F;&#xFF08;&#x7248;&#x672C;&#x53F7;&#x3001;appid&#x7B49;&#xFF09;&#x3001;&#x56FE;&#x6807;(app&#x7684;&#x5E94;&#x7528;&#x56FE;&#x6807;)&#x3001;sdk&#x914D;&#x7F6E;&#x3001;&#x6A21;&#x5757;&#x6743;&#x9650;&#x914D;&#x7F6E;&#x3001;&#x9875;&#x9762;&#x5F15;&#x7528;&#x5173;&#x7CFB;&#x3001;&#x4EE3;&#x7801;&#x89C6;&#x56FE;&#xFF0C;&#x5177;&#x4F53;&#x53C2;&#x770B;dcloud&#x63D0;&#x4F9B;&#x7684;<a href="http://ask.dcloud.net.cn/docs/#//ask.dcloud.net.cn/article/94" target="_blank">&#x6587;&#x6863;</a>&#x3002;</li>
</ul>
<h3 id="npm&#x521D;&#x59CB;&#x5316;">npm&#x521D;&#x59CB;&#x5316;</h3>
<pre><code>$1. &#x4E0B;&#x8F7D;&#x9879;&#x76EE;&#x5728;&#x5F53;&#x524D;&#x9879;&#x76EE;&#x76EE;&#x5F55;&#x4E0B;&#x6253;&#x5F00;&#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;&#x8F93;&#x5165;

    npm install

    &#x4E0B;&#x8F7D;&#x6240;&#x6709;&#x4F9D;&#x8D56;&#xFF0C;&#x4E0B;&#x8F7D;&#x901F;&#x5EA6;&#x53D6;&#x51B3;&#x7F51;&#x901F;&#x548C;&#x786C;&#x4EF6;&#xFF0C;&#x4E0B;&#x8F7D;&#x5B8C;&#x5728;&#x6267;&#x884C;&#x540E;&#x9762;&#x7684;&#x6D41;&#x7A0B;
</code></pre><p><img src="http://osk1hpe2y.bkt.clouddn.com/17-11-8/27256342.jpg" alt="&#x56FE;&#x7247;"></p>
<pre><code>$2. &#x6267;&#x884C;&#x7F16;&#x8BD1;&#x8F93;&#x5165;
    gulp dev
</code></pre><p><img src="http://osk1hpe2y.bkt.clouddn.com/17-11-8/43920328.jpg" alt="&#x56FE;&#x7247;"></p>
<h5 id="packagejson&#x5185;&#x5BB9;&#x5982;&#x4E0B;">package.json&#x5185;&#x5BB9;&#x5982;&#x4E0B;</h5>
<pre><code>{
  &quot;devDependencies&quot;: {
    &quot;autoprefixer&quot;: &quot;^7.1.1&quot;,
    &quot;babel-core&quot;: &quot;^6.25.0&quot;,
    &quot;babel-loader&quot;: &quot;^7.1.1&quot;,
    &quot;babel-plugin-syntax-dynamic-import&quot;: &quot;^6.18.0&quot;,
    &quot;babel-preset-env&quot;: &quot;^1.6.0&quot;,
    &quot;css-loader&quot;: &quot;^0.28.4&quot;,
    &quot;gulp&quot;: &quot;^3.9.1&quot;,
    &quot;gulp-changed&quot;: &quot;^2.0.0&quot;,
    &quot;gulp-clean-css&quot;: &quot;^3.0.3&quot;,
    &quot;gulp-htmlmin&quot;: &quot;^3.0.0&quot;,
    &quot;gulp-load-plugins&quot;: &quot;^1.5.0&quot;,
    &quot;gulp-postcss&quot;: &quot;^6.3.0&quot;,
    &quot;gulp-pug&quot;: &quot;^3.3.0&quot;,
    &quot;gulp-stylus&quot;: &quot;^2.6.0&quot;,
    &quot;gulp-uglify&quot;: &quot;^2.0.1&quot;,
    &quot;minimist&quot;: &quot;^1.2.0&quot;,
    &quot;postcss-loader&quot;: &quot;^2.0.6&quot;,
    &quot;pug-loader&quot;: &quot;^2.3.0&quot;,
    &quot;stream-combiner2&quot;: &quot;^1.1.1&quot;,
    &quot;stylus-loader&quot;: &quot;^3.0.1&quot;,
    &quot;vinyl-named&quot;: &quot;^1.1.0&quot;,
    &quot;vue-loader&quot;: &quot;^12.2.1&quot;,
    &quot;vue-template-compiler&quot;: &quot;^2.3.4&quot;,
    &quot;webpack&quot;: &quot;^2.6.1&quot;,
    &quot;webpack-stream&quot;: &quot;^3.2.0&quot;
  },
  &quot;browserslist&quot;: [
    &quot;Android &gt;= 4.4.3&quot;,
    &quot;iOS &gt;= 8&quot;
  ],
  &quot;dependencies&quot;: {
    &quot;axios&quot;: &quot;^0.16.2&quot;,
    &quot;vue&quot;: &quot;^2.3.4&quot;
  }
}
</code></pre><h2 id="&#x8C03;&#x8BD5;">&#x8C03;&#x8BD5;</h2>
<ul>
<li>chrome&#x6D4F;&#x89C8;&#x5668;pc&#x7AEF;&#x8C03;&#x8BD5;&#x548C;hbuilder&#x771F;&#x673A;&#x8C03;&#x8BD5;&#xFF0C;chrome&#x8C03;&#x8BD5;&#x6BD4;&#x8F83;&#x65B9;&#x4FBF;(&#x6027;&#x80FD;&#x53CA;&#x67E5;&#x770B;&#x4EE3;&#x7801;&#x663E;&#x793A;&#x6BD4;&#x8F83;&#x597D;)&#xFF0C;&#x4EE5;&#x4E0B;&#x53EA;&#x4EE5;chrome&#x6D4F;&#x89C8;&#x5668;&#x8BB2;&#x89E3;</li>
</ul>
<h3 id="pc&#x7AEF;&#x5F00;&#x53D1;&#x8C03;&#x8BD5;">pc&#x7AEF;&#x5F00;&#x53D1;&#x8C03;&#x8BD5;</h3>
<pre><code>$1. &#x4E0B;&#x8F7D;&#x5B8C;&#x6240;&#x6709;&#x4F9D;&#x8D56;&#x6267;&#x884C;&#x7F16;&#x8BD1;&#x540E;&#x6253;&#x5F00;build&#x6587;&#x4EF6;&#x5939;&#x4E0B;login/login.html&#x9875;&#x9762;&#xFF0C;&#x6253;&#x5F00;chrome F12&#x6309;&#x952E;&#x53EF;&#x4EE5;&#x6253;&#x5F00;&#x5F00;&#x53D1;&#x5DE5;&#x5177;&#x67E5;&#x770B;html&#x7684;dom&#x5143;&#x7D20;&#x548C;&#x6837;&#x5F0F;&#x4EE5;&#x53CA;js&#x4EE3;&#x7801;

$2. &#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;&#x6267;&#x884C;gulp dev&#x76D1;&#x5BDF;&#x4EE3;&#x7801;&#x6539;&#x52A8;&#xFF0C;&#x5982;&#x679C;&#x6709;&#x62A5;&#x9519;&#xFF0C;&#x91CD;&#x65B0;&#x6253;&#x5F00;&#x5F53;&#x524D;&#x6587;&#x4EF6;&#x76EE;&#x5F55;&#x6267;&#x884C;gulp dev&#xFF0C;&#x4FEE;&#x6539;&#x4EE3;&#x7801;&#x540E;&#xFF0C;&#x5237;&#x65B0;&#x9875;&#x9762;&#x5C31;&#x53EF;&#x4EE5;&#x67E5;&#x770B;&#x6539;&#x52A8;
</code></pre><h3 id="&#x79FB;&#x52A8;&#x7AEF;&#x5F00;&#x53D1;&#x8C03;&#x8BD5;">&#x79FB;&#x52A8;&#x7AEF;&#x5F00;&#x53D1;&#x8C03;&#x8BD5;</h3>
<pre><code>$1. &#x7528;&#x624B;&#x673A;&#x901A;&#x8FC7;usb&#x7EBF;&#x8FDE;&#x63A5;&#x7535;&#x8111;&#xFF0C;&#x6253;&#x5F00;hbuilder IDE&#x7684;&#x771F;&#x673A;&#x8C03;&#x8BD5;&#xFF0C;&#x53EF;&#x4EE5;&#x67E5;&#x770B;&#x6570;&#x636E;&#x8F93;&#x51FA;&#x548C;&#x4EE3;&#x7801;&#x4FEE;&#x6539;&#x7ED3;&#x679C;
</code></pre><p><img src="http://osk1hpe2y.bkt.clouddn.com/17-11-8/78948281.jpg" alt="&#x56FE;&#x7247;"></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="xu-yao-kan-de-kuang-jia-wen-dang.html" class="navigation navigation-prev " aria-label="Previous page: 需要看的框架文档">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="kai-fa-huan-jing-yi-lai-mo-kuai-shuo-ming.html" class="navigation navigation-next " aria-label="Next page: 开发环境依赖模块说明">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"安装与调试","level":"1.2","depth":1,"next":{"title":"开发环境依赖模块说明","level":"1.3","depth":1,"path":"kai-fa-huan-jing-yi-lai-mo-kuai-shuo-ming.md","ref":"kai-fa-huan-jing-yi-lai-mo-kuai-shuo-ming.md","articles":[]},"previous":{"title":"需要看的框架文档","level":"1.1.2","depth":2,"path":"xu-yao-kan-de-kuang-jia-wen-dang.md","ref":"xu-yao-kan-de-kuang-jia-wen-dang.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"an-zhuang.md","mtime":"2017-11-09T21:18:38.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-11-11T03:51:05.960Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

